// SpcWraper.cpp : Implementation of WinMain


#include "stdafx.h"
#include "resource.h"
#include "SpcWraper_i.h"
#include "MainWindow.h"
using namespace ATL;


class CSpcWraperModule : public ATL::CAtlExeModuleT< CSpcWraperModule >
{
public :
	DECLARE_LIBID(LIBID_SpcWraperLib)
	DECLARE_REGISTRY_APPID_RESOURCEID(IDR_SPCWRAPER, "{211CB71F-C5E4-4AD6-A2E1-463B338F181C}")
	};

CSpcWraperModule _AtlModule;



//
extern "C" int WINAPI _tWinMain(HINSTANCE /*hInstance*/, HINSTANCE /*hPrevInstance*/, 
								LPTSTR /*lpCmdLine*/, int nShowCmd)
{
	//CSpcWraperDlg dlg;
	//dlg.DoModal();
	CMainWindow wnd;
	RECT rect = { 0, 0, 800, 150 };
	wnd.Create(0, &rect, L"test", WS_OVERLAPPEDWINDOW, WS_EX_CLIENTEDGE);
	if (!wnd)
	{
		return FALSE;
	};
	wnd.CenterWindow();
	wnd.ShowWindow(nShowCmd);
	wnd.UpdateWindow();
	MSG msg;
	while (GetMessage(&msg, NULL, 0, 0))
	{
		TranslateMessage(&msg);
		DispatchMessage(&msg);
	}
	return _AtlModule.WinMain(nShowCmd);
}

